package com.guanzhi.validation.service;

import com.guanzhi.validation.domain.Member;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

/**
 * Spring6
 * <p> Package: com.guanzhi.validation.service </p>
 * <p> File: ValidatorMethod.java </p>
 * <p> Description:  (使用方法形式 实现validation数据校验 方法类)</p>
 * <p> Date: 2024/9/21 19:38</p>
 *
 * @author LiKai
 * @version 1.0 （代码版本）
 * @email <a href="mailto:Likai55634@aliyun.com">LiKai</a>（邮箱）
 * @date 2024/9/21 19:38
 * @since jdk1.8（jdk版本）
 */
@Service
@Validated
public class ValidatorMethod {
    public String testParams(@NotNull @Valid Member member) {
        return member.toString();
    }
}
